package com.kuaimacode.kframework.mybatis.models.finance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author anzy
 * @date 2019/05/23
 */
@TableName("agent_draw_apply")
@Data
public class AgentDrawApply implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "分站id")
	@TableField("agent_id")
	private String agentId;

	@ApiModelProperty(value = "分站名称")
	@TableField(exist = false)
	private String agentName;

	@ApiModelProperty(value = "申请提现金额")
	@TableField("amount")
	private BigDecimal amount;
	@ApiModelProperty(value = "手续费")
	@TableField("fee")
	private BigDecimal fee;
	@ApiModelProperty(value = "银行卡号")
	@TableField("account")
	private String account;
	@ApiModelProperty(value = "户名")
	@TableField("account_name")
	private String accountName;
	@ApiModelProperty(value = "卡户银行")
	@TableField("open_bank")
	private String openBank;
	@ApiModelProperty(value = "提现申请状态")
	@TableField("status")
	private Integer status;
	@ApiModelProperty(value = "申请人")
	@TableField("create_by")
	private Long createBy;
	@ApiModelProperty(value = "申请时间")
	@TableField("create_at")
	private Date createAt;
	@ApiModelProperty(value = "审核人")
	@TableField("check_by")
	private Integer checkBy;
	@ApiModelProperty(value = "审核时间")
	@TableField("check_at")
	private Date checkAt;

	@ApiModelProperty(value = "失败原因")
	@TableField("reason")
	private String reason;

}
